<!DOCTYPE html>
<html>
<head>
    <title>随拍</title>
    <meta charset="utf-8">
    <script type="text/javascript" src="jquery-3.4.1.js"></script>
    <link href="../css/项目详情.css" rel="stylesheet" media="all" />
    <script>
        $(document).ready(function(){
            $('#tz1').click(function(){
                window.location.href="publish2.html";
            });
            $('#tz2').click(function(){
                window.location.href="main.html";
            });
            $(".l_2_3").click(function(){
                // alert($(".rr_2_3").attr("data-id"))
                $.post("relate",{
                    order: $(".orderInput").attr("value"),
                    position: $(".positionInput").attr("value"),
                    user: $(".userInput").attr("value")
                },function(data){
                    var data=JSON.parse(data)
                    if(data.status==false)
                    {
                        alert("已经报名，无需再次报名")
                        window.location.href='main2.html'
                    }
                    else if(data.status==true){
                        alert("报名成功")
                        window.location.href='main2.html'
                    }
                })
            });
        });
    </script>
</head>

<body>
    <div class="zy">
        <div class="top">
            <div class="lg">S</div>
            <nav>
                <ul class="main">
                    <li>
                        <a class="logo"></a>
                    </li>
                    <li>
                        <a href="main.html" style="font-size: 20px;font-weight: 600;letter-spacing: 1.2px;margin-top: 8px;">随拍</a>
                    </li>
                    <li><a href="main.html" class="top_menu">首页</a></li>
                    <li><a href="findProject1.html" class="top_menu">项目</a></li>
                    <li><a href="discover.html" class="top_menu">发现</a></li>
                    <li  class="box" >
                        <a class="dl" href="#"></a>
                        
                        <ul class="drop menu2">
                                <li><a class="aaa" href="#">账号安全</a></li>
                                <li><a href="#">2</a></li>
                                <li><a href="#">3</a></li>
                                <li><a class="aa" href="#">退出登录</a></li>
                        </ul>
                        
                        
                      </li>
                </ul>
            </nav>
        </div>
        <div class="bottom">
            <div class="bo_body">
                <div class="b_1"><%= orders[0].orderName%></div>
                <div class="xx">
                    <div class="b_2"><%= orders[0].orderType%></div>
                    <div class="b_2" >地点：<%= orders[0].orderAdress%></div>
                    
                    <div class="b_2" >项目预算：<%= orders[0].orderCost%></div>
                    <div class="b_2" >联系邮箱：<%= orders[0].orderEmail%></div>  
                    <div class="b_2" >截止日期：<%= orders[0].orderTime%></div>
                    <div class="b_2" >企业认证：无</div>
                    <div class="b_2" >联系人：<%= orders[0].userName%></div>
                </div>
                <div style="clear: both;"></div>
                <div><textarea ><%= orders[0].orderInfo%></textarea></div>
                <div class="zw">
                    <div class="zww">职位：</div>
                    <div class="zwww">
                        <div class="l_2_">
                            <div class="c">
                                <img src="../img/cy.png" class="l_2_1" />
                                <div class="kh">(已有2人应招)</div>
                            </div>
                           
                            <div class="c" style="margin-left: 15px;" >
                                <div class="l_2_2">导演</div>
                                <div class="wid">
                                    <!-- <form action="relate" method="POST">  -->
                                        <input type="text" class="orderInput" name="order" value="<%= orders[0].orderID%>" style="display: none;">
                                        <input type="text" class="positionInput" name="position" value="1" style="display: none;">
                                        <input type="text" class="userInput" name="user" value="<%= orders[0].userID%> " style="display: none;">
                                        <button type="submit" class="l_2_3" id="yq">应招</button>
                                    <!-- </form> -->
                                </div>
                               
                            </div>
                            
                            
                        </div>
                        <div class="l_2_">
                            <div class="c">
                                <img src="../img/cy.png" class="l_2_1" />
                                <div class="kh"></div>
                            </div>
                           
                            <div class="c" style="margin-left: 15px;" >
                                <div class="l_2_2">导演</div>
                                <div class="wid">
                                    <button class="l_2_3" id="yq">已选定</button>
                                </div>
                               
                            </div>
                            
                            
                        </div>
                        <div class="l_2_">
                            <div class="c">
                                <img src="../img/cy.png" class="l_2_1" />
                                <div class="kh"></div>
                            </div>
                           
                            <div class="c" style="margin-left: 15px;" >
                                <div class="l_2_2">化妆师</div>
                                <div class="wid">
                                    <button class="l_2_3" id="yq">已选定</button>
                                </div>
                               
                            </div>
                            
                            
                        </div>
                       
                        
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>

</html>